package day03;
//算数运算符演示
public class OperDemo1 {
    public static void main(String[] args) {
        int a=10,b=20;
        a++;
        ++b;
        System.out.println(a);
        System.out.println(b);
        System.out.println("--------------------------------");
        int c=5,d=15;
        int e=++c;
        int f=d++;
        System.out.println(e);//6
        System.out.println(f);//15
        System.out.println(c);//6
        System.out.println(d);//16
        System.out.println("********************************");
        int g=2,h=3;
        int k=g++;
        int l=++h;
        System.out.println(k);//2
        System.out.println(l);//4
        System.out.println(g);//3
        System.out.println(h);//4
        System.out.println("小黑子小黑子小黑子小黑子小黑子小黑子小黑子");
        int r=10,t=12;
        int gr=++r;
        int lr=t++;
        System.out.println(r);//11
        System.out.println(gr);//11
        System.out.println(lr);//12
        int you=9,key=10;
        int i=you++;
        int j=++key;
        System.out.println(i);//9
        System.out.println(j);//11
    }
}
